<div class="brand-box">
    <div class="tit-bar clearfix">
        <span class="tit">在售车型({$DataCarNews | count})</span>
    </div>
    <div class="mubox">
        <div class="mod-dotal">
            <dl class="mu-models-list">

                <assign name="groupPz" value="$DataCarNews[0]['pz']"/>
                <dt class="f14">{$groupPz}</dt>
                <foreach name="DataCarNews" item="CarNews">
                        <if condition=" $CarNews['pz'] neq $groupPz ">
                            <dt class="f14">{$groupPz}</dt>
                            <assign name="groupPz" value="$CarNews['pz']"/>
                        </if>
                    <dd>
                        <h3 class="mu-car-name"><a href="/carlibrary/carinfo.php?vt=4&amp;carid=24077"> {$CarNews['title']}</a></h3>
                        <p class="msg1"><span>指导价：</span><em>{$CarNews['csprice']}</em><span>万元</span></p>
                        <p class="msg1"><span>市场价：</span><em class="red">{$CarNews['csprice']}万元</em></p>
                        <p class="btn-wrap3"></p>
                    </dd>
                </foreach>
            </dl>
        </div>
    </div>
    <div class="tit-bar clearfix">
        <span class="tit">停产车型({$DataCarOlds | count})</span>
    </div>
    <div class="mubox">
        <div class="mod-dotal" style="display:none;" id="divOldCars">
            <dl class="mu-models-list">
                <assign name="groupOldPz" value="$DataCarOlds[0]['pz']"/>
                <dt class="f14">{$groupOldPz}</dt>
                <foreach name="DataCarOlds" item="CarOlds">
                    <if condition=" $CarOlds['pz'] neq $groupOldPz ">
                        <dt class="f14">{$groupOldPz}</dt>
                        <assign name="groupOldPz" value="$CarOlds['pz']"/>
                    </if>
                    <dd>
                        <h3 class="mu-car-name"><a href="/carlibrary/carinfo.php?vt=4&amp;carid=24077"> {$CarOlds['title']}</a></h3>
                        <p class="msg1"><span>指导价：</span><em>{$CarOlds['csprice']}</em><span>万元</span></p>
                        <p class="msg1"><span>市场价：</span><em class="red">{$CarOlds['csprice']}万元</em></p>
                        <p class="btn-wrap3"></p>
                    </dd>
                </foreach>
            </dl>
        </div>
    </div>
    <div class="loading" id="getMore">
        <a href="javascript:void(0)" class="loading-txt">查看更多</a>
    </div>
</div>
<script src="__PUBLIC__/js/zepto.min.js"></script>
<script type="text/javascript">
    (function ($) {{
        $('#getMore').click(function () {
            var oldCarCounts = '{$DataCarOlds | count}';
            if (oldCarCounts > 10) {
                $('#getMore').hide();
                $('#divOldCars').show();
            } else {
                $('#getMore').show();
                $('#divOldCars').hide();
            }
        });
    }})(Zepto);
</script>